package cn.autoOffice.custom;

import cn.autoOffice.bean.pojo.Employee;
import cn.autoOffice.mapper.EmpMapper;
import cn.autoOffice.service.EmpService;
import cn.autoOffice.service.impl.LoginServiceImpl;
import cn.office.shiro.interf.LoginLinker;
import cn.office.shiro.interf.UserInfo;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author 金健伟
 * @DATE 2023/3/27 14:05
 * 功能说明：
 */
@Component
public class ShiroLogin implements LoginLinker {
    
    @Resource
    public EmpService empService;

    @Override
    public UserInfo getData(String s, char[] s1) {
        return empService.getFullEmpRoleName(Integer.parseInt(s));
    }
    
}
